<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="contactInfo.view"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.contactInfo.view"/> </h1></td></tr>
</table>
	<table width=600 align=center>
	    <tr> <s:url id="insert" action="contactInfoSetUpForInsertOrUpdate"/>
	         <td><s:a href="%{insert}">Click Here to Add New Contact Info</s:a></td>
	     </tr>
	</table><br/>
<table align=center class="borderAll">
    <tr>

        <th><s:text name="label.contactInfo.emailId"/></th>
        <th><s:text name="label.contactInfo.phoneNo"/></th>

        <th>&nbsp;</th>
    </tr>
    <s:iterator value="contactInfos" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">

            <td class="nowrap"><s:property value="emailId"/></td>
            <td class="nowrap"><s:property value="phoneNo"/></td>
            <td class="nowrap">
                            	<s:url id="update" action="contactInfoSetUpForUpdate">
            		       		   <s:param name="contactInfo.contactInfoId" value="contactInfoId"/>
            		       		</s:url>
                            <s:a href="%{update}">Edit</s:a>
                            &nbsp;&nbsp;&nbsp;
                            <s:url id="delete" action="contactInfoDelete">
            		       		   <s:param name="contactInfo.contactInfoId" value="contactInfoId"/>
            		       		</s:url>
                            <s:a href="%{delete}">Delete</s:a>
                        </td>

        </tr>  		
	 </s:iterator>
    </table>
</body>
</html>
